package sample03;

class CScv extends CGroundUnit implements IRepaireable{

	CScv()
	{
		super(60);
		hitPoint = MAX_HP;
	}
	
	void repair(IRepaireable r)
	{
		if( r instanceof CUnit)
		{
			CUnit u = (CUnit)r;
			while(u.hitPoint != u.MAX_HP)
			{
				u.hitPoint++;
			}
		}
	}
	
}
